$OpenBSD: patch-lib_src_facts_posix_cache_cc,v 1.1 2017/05/14 20:36:21 sebastia Exp $

Store cached facts in a sane location

--- lib/src/facts/posix/cache.cc.orig	Fri May 12 13:05:56 2017
+++ lib/src/facts/posix/cache.cc	Fri May 12 13:06:22 2017
@@ -3,7 +3,7 @@
 namespace facter { namespace facts { namespace cache {
 
     std::string fact_cache_location() {
-        return "/opt/puppetlabs/facter/cache/cached_facts/";
+        return "${LOCALSTATEDIR}/puppetlabs/facter/cached_facts/";
     }
 
 }}}  // namespace facter::facts::cache
